package com.ruoyi.project.tencent.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.tencent.mapper.TcDriversLicenseMapper;
import com.ruoyi.project.tencent.domain.TcDriversLicense;
import com.ruoyi.project.tencent.service.ITcDriversLicenseService;

/**
 * 腾讯云-用户驾驶证信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-08
 */
@Service
public class TcDriversLicenseServiceImpl implements ITcDriversLicenseService 
{
    @Autowired
    private TcDriversLicenseMapper tcDriversLicenseMapper;

    /**
     * 查询腾讯云-用户驾驶证信息
     * 
     * @param dlid 腾讯云-用户驾驶证信息ID
     * @return 腾讯云-用户驾驶证信息
     */
    @Override
    public TcDriversLicense selectTcDriversLicenseById(Long dlid)
    {
        return tcDriversLicenseMapper.selectTcDriversLicenseById(dlid);
    }

    /**
     * 查询腾讯云-用户驾驶证信息列表
     * 
     * @param tcDriversLicense 腾讯云-用户驾驶证信息
     * @return 腾讯云-用户驾驶证信息
     */
    @Override
    public List<TcDriversLicense> selectTcDriversLicenseList(TcDriversLicense tcDriversLicense)
    {
        return tcDriversLicenseMapper.selectTcDriversLicenseList(tcDriversLicense);
    }

    /**
     * 新增腾讯云-用户驾驶证信息
     * 
     * @param tcDriversLicense 腾讯云-用户驾驶证信息
     * @return 结果
     */
    @Override
    public int insertTcDriversLicense(TcDriversLicense tcDriversLicense)
    {
        return tcDriversLicenseMapper.insertTcDriversLicense(tcDriversLicense);
    }

    /**
     * 修改腾讯云-用户驾驶证信息
     * 
     * @param tcDriversLicense 腾讯云-用户驾驶证信息
     * @return 结果
     */
    @Override
    public int updateTcDriversLicense(TcDriversLicense tcDriversLicense)
    {
        return tcDriversLicenseMapper.updateTcDriversLicense(tcDriversLicense);
    }

    /**
     * 批量删除腾讯云-用户驾驶证信息
     * 
     * @param dlids 需要删除的腾讯云-用户驾驶证信息ID
     * @return 结果
     */
    @Override
    public int deleteTcDriversLicenseByIds(Long[] dlids)
    {
        return tcDriversLicenseMapper.deleteTcDriversLicenseByIds(dlids);
    }

    /**
     * 删除腾讯云-用户驾驶证信息信息
     * 
     * @param dlid 腾讯云-用户驾驶证信息ID
     * @return 结果
     */
    @Override
    public int deleteTcDriversLicenseById(Long dlid)
    {
        return tcDriversLicenseMapper.deleteTcDriversLicenseById(dlid);
    }
}
